<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Document</title>
	<style>
		*{
			margin: 0;
			padding: 0;
			list-style: none;
		}
		/* 设置轮播图图片展示容器  展示两张*/
		div{
			width: 800px;
			height: 300px;
			margin: 50px auto;
			border: 1px solid royalblue;
			overflow: hidden;
		}
		/* 设置轮播图容器 */
		ul{
			width: 3000px;
			height: 300px;
			/* 设置动画 */
			animation: swipe 8s linear 0s infinite;
		}
		ul li{
			width: 400px;
			height: 300px;
			float: left;
		}
		ul li img{
			width: 400px;
			height: 300px;
		}
		/* 设置轮播动画帧 */
		@keyframes swipe {
			/* 开始状态 */
			from{
				margin-left: 0;
			}
			/* 结束状态 */
			to{
				margin-left: -1600px;
			}
		}
		/* 给图片设置高亮效果 */
		ul:hover li{
			opacity: 0.5;
		}
		ul li:hover{
			opacity: 1;
		}
	</style>
</head>
<body>
	<div>
		<ul>
			<li><img src="../images/ad7.jpeg" alt=""></li>
			<li><img src="../images/ad8.jpg" alt=""></li>
			<li><img src="../images/ad9.jpeg" alt=""></li>
			<li><img src="../images/ad10.jpg" alt=""></li>
			<li><img src="../images/ad7.jpeg" alt=""></li>
			<li><img src="../images/ad8.jpg" alt=""></li>
		</ul>
	</div>
</body>
</html>